<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单管理</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
	
	<div id="header">
			<img class="logo_img" alt="" src="/static/img/logo.gif" >
			<span class="wel_word">订单管理系统</span>
			<div>
				<a href="/getBooks">图书管理</a>
				<a href="/ordersManager">订单管理</a>
				<a href="/main">返回商城</a>
			</div>
	</div>
	
	<div id="main">
				{{if .}}
				<table>
					<tr>
						<th>单号</th>
						<th>日期</th>
						<th>数量</th>
						<th>金额</th>
						<th>详情</th>
						<th>发货</th>
						
					</tr>
					{{range .}}
						<tr>
							<td>
								{{.Id}}
							</td>
							<td>{{.CreateTime}}</td>
							<td>{{.Tcount}}</td>
							<td>{{.Tamout}}</td>
							<td><a href="/toOrderItem?orderid={{.Id}}">查看详情</a></td>
							<td>
								{{if .NoSend}}
								
										<a href="/toSendOrders?orderid={{.Id}}">点击发货</a>
								{{end}}	
								{{if .Sended}}
										<span>已发货</span>
								{{end}}	
								{{if .Completed}}
										<span>交易结束</span>
								{{end}}
							</td>
						</tr>	
				{{end}}
				</table>
				{{else}}
				<h1>还没有订单！</h1>
				
				{{end}}
			
	</div>
	
	<div id="bottom">
		<span>
			尚硅谷书城.Copyright &copy;2015
		</span>
	</div>
</body>
</html>